<?php
define('IN_TOMMY', true);
define('APP_ROOT', substr(dirname(__FILE__), 0, -10));

if(!file_exists(APP_ROOT.'config/config.ini.php')){

	echo 'Config文件不存在,请创建Confilg文件';
	exit;
}
else{

	$config = include(APP_ROOT.'config/config.ini.php');
}
 
include(APP_ROOT.'tools/ajax/Base.class.php');
include(APP_ROOT.'tools/ajax/Db.class.php');
include(APP_ROOT.'tools/ajax/MakeModel.class.php');

$make_mode = new MakeModel;

$result = $make_mode->run();

if(!$result){

	echo '创建MODEL文件失败!';
}
else{

	echo '创建MODEL文件成功!';
}

?>